package com.project.service.imp;

import com.project.bean.CutPageBean;
import com.project.bean.OrderBean;
import com.project.dao.IOrderDao;
import com.project.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderService implements IOrderService {
    @Autowired
    private IOrderDao dao;

    @Override
    public CutPageBean<OrderBean> cutAll(int pageNO) {
        return dao.cutAll(pageNO);
    }

    @Override
    public void add(OrderBean order) {
        dao.add(order);
    }

    @Override
    public void del(int id) {
        dao.del(id);
    }

    @Override
    public void update(int id, String address) {
        dao.update(id, address);
    }

    @Override
    public OrderBean findById(int id) {
        return dao.findById(id);
    }
}
